<template>
  <div>
    <div id="top">
      <span @click="funB()">&lt;</span>
      <h3>信用卡申请</h3>
      <span class="iconfont" @click="funB()">&#xe64e;</span>
    </div>
    <div id="center">
      <div id="search">
        <select>
          <option>热门产品</option>
          <option>新品上线</option>
          <option>填充内容</option>
        </select>
        |
        <select>
          <option>西安市</option>
          <option>西安市</option>
          <option>西安市</option>
        </select>
        <div>
          <span class="iconfont">&#xe8af;</span>
          <i>请输入信用卡信息</i>
        </div>
      </div>
      <div id="intro">
        在<i>热点产品</i>下共找到<i>16</i>种可在<i>西安市</i>办理的信用卡
      </div>
      <div id="goods" v-for="(v,i) in img" :key="i">
        <div class="images">
          <h3>北京冬奥信用卡套卡</h3>
          <img :src="v.ciimages" alt="" />
        </div>
        <div class="detail">
          <div class="new">新</div>
          <ul>
            <li>●新办卡报名消费最高赠90元京东E卡</li>
            <li>●新客户消费1笔享168元返现</li>
            <li>●全币种全球支付人民币入账</li>
          </ul>
          <button class="btn" @click="fun()">在线申请</button>
        </div>
      </div>
    </div>
    <Bottom />
  </div>
</template>

<script>
import Bottom from "@/components/CreditCar/Tansact/CarBom.vue";
import {card_get} from "@/apis/card";
export default {
  data(){
    return{
      img:[]
    }
  },
  components: { Bottom },
  methods: {
    fun() {
      this.$router.push("/apppage");
    },
    funB() {
      this.$router.push("/carhome");
    },
  },
  created() {
    card_get().then((res)=>{
      console.log(res)
      this.img=res.data.data
    })
  }
};
</script> 

<style lang="scss" scoped>
// fontsize 图标
@font-face {
  font-family: "iconfont";
  src: url("@/assets/iconfont/iconfont.woff2?t=1664011341460") format("woff2"),
    url("@/assets/iconfont/iconfont.woff2?t=1664011341460") format("woff"),
    url("@/assets/iconfont/iconfont.woff2?t=1664011341460") format("truetype");
}
.iconfont {
  font-family: "iconfont" !important;
  font-size: 0.16rem;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#top {
  width: 100%;
  height: 0.5rem;
  background: #5c9af7;
  display: flex;
  justify-content: space-between;
  span {
    width: 0.5rem;
    height: 0.5rem;
    font-size: 0.24rem;
    line-height: 0.5rem;
    text-align: center;
    color: #fff;
  }
  h3 {
    height: 0.5rem;
    font-size: 0.18rem;
    line-height: 0.5rem;
    text-align: center;
    color: #fff;
  }
}
#center {
  width: 100%;
  background: #f8f8f7;
  #search {
    background: #fff;
    display: flex;
    justify-content: space-evenly;
    height: 0.44rem;
    align-items: center;
    line-height: 0.44rem;
    color: #dedede;
    border-bottom: 0.01rem solid #f0f0f0;
    select {
      width: 0.8rem;
      border: none;
      font-size: 0.12rem;
    }
    select:nth-child(2) {
      width: 0.6rem;
      border: none;
      font-size: 0.12rem;
    }
    div {
      width: 2rem;
      height: 0.32rem;
      border-radius: 0.08rem;
      background: #f3f3f3;
      line-height: 0.32rem;
      span {
        font-size: 0.2rem;
        color: #9b9b9b;
        margin-left: 0.05rem;
        vertical-align: middle;
      }
      i {
        font-size: 0.14rem;
        color: #9b9b9b;
        line-height: 0.32rem;
        margin-left: 0.05rem;
      }
    }
  }
  #intro {
    height: 0.38rem;
    background: #fff;
    margin-bottom: 0.1rem;
    font-size: 0.12rem;
    line-height: 0.38rem;
    color: #a5a5a5;
    text-indent: 0.1rem;
    i {
      color: #6ea6f8;
      font-size: 0.12rem;
    }
  }
  #goods {
    height: 1.4rem;
    background: #fff;
    margin-bottom: 0.1rem;
    display: flex;
    .images {
      width: 44%;
      height: 100%;
      text-align: center;
      h3 {
        height: 0.4rem;
        line-height: 0.4rem;
        font-weight: 700;
        font-size: 0.14rem;
      }
      img {
        width: 1.4rem;
        height: 0.86rem;
      }
    }
    .detail {
      width: 66%;
      height: 100%;
      position: relative;
      overflow: hidden;
      .new {
        width: 0.38rem;
        height: 0.38rem;
        text-align: center;
        line-height: 0.6rem;
        font-size: 0.12rem;
        position: absolute;
        top: -0.19rem;
        right: -0.19rem;
        background: #f09e38;
        color: #f9f2f0;
        transform: rotate(45deg);
      }
      ul {
        position: absolute;
        top: 50%;
        margin-top: -0.24rem;
        li {
          font-size: 0.12rem;
          color: #c1c1c1;
        }
      }
      .btn {
        width: 0.81rem;
        height: 0.26rem;
        border-radius: 0.14rem;
        border: 0.01rem solid #73a8f8;
        color: #1e80cd;
        background: #fff;
        position: absolute;
        bottom: 0.1rem;
        right: 0.1rem;
      }
    }
  }
}
</style>